package com.aliang.shopping.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 消息表
 *
 * @TableName message
 */
@TableName(value = "message")
@Data
public class Message implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private String id;

    /**
     * 消息类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 发送时间戳
     */
    @TableField(value = "send_time")
    private Long sendTime;

    /**
     * 发送内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 发送状态
     */
    @TableField(value = "status")
    private String status;

    /**
     * 接收人Id
     */
    @TableField(value = "to_id")
    private Long toId;

    /**
     * 发送人Id
     */
    @TableField(value = "from_id")
    private Long fromId;

    /**
     * 删除方Id
     */
    @TableField(value = "delete_id")
    private Long deleteId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}